package com.peng.groovy

class Person {
    def name
    def age
    Person(String name, int age) {
        this.name = name
        this.age = age
    }
    String toString() {
        return name + age
    }
}

static void main(String[] args) {
    def string = new Person('zhangsan', 22).toString()
    println string
}